import request from '@/utils/request'

// 查询分销校区申请列表列表
export function listCampusdistriapply(query) {
  return request({
    url: '/campus/campusdistriapply/list',
    method: 'get',
    params: query
  })
}

// 查询分销校区申请列表详细
export function getCampusdistriapply(applyDistributionId) {
  return request({
    url: '/campus/campusdistriapply/' + applyDistributionId,
    method: 'get'
  })
}

// 新增分销校区申请列表
export function addCampusdistriapply(data) {
  return request({
    url: '/campus/campusdistriapply',
    method: 'post',
    data: data
  })
}

// 修改分销校区申请列表
export function updateCampusdistriapply(data) {
  return request({
    url: '/campus/campusdistriapply',
    method: 'put',
    data: data
  })
}

// 删除分销校区申请列表
export function delCampusdistriapply(applyDistributionId) {
  return request({
    url: '/campus/campusdistriapply/' + applyDistributionId,
    method: 'delete'
  })
}




export function distribute(data) {
  return request({
    url: '/campus/campusdistriapply/distribute',
    method: 'put',
    data: data
  })
}
